<template>
  <div class="case">
      <van-sticky :offset-top="0">
    <van-nav-bar
      left-text="返回"
      title="患者小刘 30岁 "
      left-arrow
      @click-left="onClickLeft"
    />
      </van-sticky>

    <div class="main">
      <van-steps direction="vertical" >
        <van-step>
          <h4>
            小牛医生 <van-tag plain type="primary">光武街道</van-tag> 小牛诊所
          </h4>
          
            <div class="disease-card">
              <header>
                <h4>2021-05-15 12:40</h4>
              </header>
              <div class="contxt">
                <div><van-icon name="user-o" />患者信息</div>
                <span>刘海 ，男 ，30 岁</span>
                <div><van-icon name="smile-comment-o" />病情描述</div>
                <span>有点疲惫</span>
                <div><van-icon name="underway-o" />患者病史</div>
                <span>花粉过敏</span>
              </div>
            </div>
        
          <p>查看 诊断结果</p>
        </van-step>
        <van-step>
          <h4>
            小王医生 <van-tag plain type="primary">武侯街道</van-tag> 小王诊所
          </h4>
          <div style="width: 100%" class="clearfix">
            <div class="disease-card">
              <header>
                <h4>2021-04-12 9:40</h4>
              </header>
              <div class="contxt">
                <div><van-icon name="user-o" />患者信息</div>
                <span>刘海 ，男 ，30 岁</span>
                <div><van-icon name="smile-comment-o" />病情描述</div>
                <span>感冒了</span>
                <div><van-icon name="underway-o" />患者病史</div>
                <span>花粉过敏</span>
              </div>
            </div>
          </div>
           <p>查看 诊断结果</p>
        </van-step>
        <van-step>
          <h4>
            小牛医生 <van-tag plain type="primary">光武街道</van-tag> 小牛诊所
          </h4>
          <div style="width: 100%" class="clearfix">
            <div class="disease-card">
              <header>
                <h4>2021-05-15 12:40</h4>
              </header>
              <div class="contxt">
                <div><van-icon name="user-o" />患者信息</div>
                <span>刘海 ，男 ，30 岁</span>
                <div><van-icon name="smile-comment-o" />病情描述</div>
                <span>太累了</span>
                <div><van-icon name="underway-o" />患者病史</div>
                <span>花粉过敏</span>
              </div>
            </div>
          </div>
           <p>查看 诊断结果</p>
        </van-step>
      </van-steps>
    </div>
  </div>
</template>

<script>
import { reactive } from "vue";
import { Toast } from "vant";
import { useRouter } from "vue-router";

import { login } from "../api/user";

export default {
  name: "Login",
  setup() {
    //实例化路由
    const router = useRouter();
    const onClickLeft = () => {
      router.go(-1);
    };

    const state = reactive({});
    const onSubmit = (values) => {};

    return {
      onClickLeft,
      onSubmit,
      state,
    };
  },
};
</script>
<style lang="less" scoped>
.disease-card {
  width: 80%;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  margin: 0 auto;
  text-align: left;
  border-radius: 20px;
    box-shadow: 0 8px 12px #ebedf0;
}
.disease-card header {
  display: flex;
  margin: 0;
  justify-content: center;

  align-items: flex-end;
  background: #e8f8ff;
  padding: 10px 0;
  padding-left: 10px;
  border-bottom: 1px solid #e8f8ff;
}
.disease-card header p {
  font-size: 10px;
  margin-left: 10px;
}
.disease-card h4 {
  margin: 0;
  padding: 0;
}
.disease-card p {
  margin: 0;
  padding: 0;
}
.contxt {
  padding: 0 10px 20px 10px;
}
.contxt div {
  padding: 10px 0;
  font-size: 14px;
  color: rgba(69, 90, 100, 0.6);
  display: flex;
  align-items: center;
}
.contxt span {
  font-size: 14px;
  font-weight: bold;
  padding-left: 25px;
}
.contxt .van-icon {
  margin-right: 10px;
}
</style>